<!DOCTYPE html>
<html>
    <head>
        <title>发布问题-问答中心</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        {eyou:static file="ask/skin/css/ey-ask.css"/}
        {eyou:static file="ask/skin/css/iconfont.css"/}
        {eyou:static file="ask/skin/css/font-awesome.min.css"/}
        {eyou:static file="ask/skin/js/jquery.min.js"/}
        {eyou:static file="ask/skin/js/layer_mobile/layer.js"/}
        {eyou:static file="ask/skin/js/ask.js"/}

    </head>

    <body>
        <!-- 头部框 -->
        {eyou:include file="ask/ask_header.htm" /}
        <!-- 头部 END -->
        <form id="SubmitAskFormData" method="post">
            <div class="ask-from bg-f bor-tb mt10">
                <div class="ask-from-item">
                    <input name="title" id="title" class="input-inner" type="text" autocomplete="off" maxlength="80" placeholder="简要准确描述你的问题，最多80字">
                </div>
                <div class="ask-from-item cate-select">{$eyou.field.HtmlCode}</div>
                <div class="ask-from-item">
                    <input class="input-inner w60" type="number" name="money" value="0" autocomplete="off" placeholder="悬赏金" oninput="VerifyBalance(this, '{$eyou.field.users_money}');" onkeyup='this.value=this.value.replace(/[^\d.]/g,"");'> <span>元</span>
                    <span class="balance">当前余额 <em>{$eyou.field.users_money}</em> 元</span>
                    <span class="pay"> <a href="javascript:void(0);" onclick="Linkjump(this, 2);" data-url="{:url('user/Pay/pay_account_recharge')}">充值</a> </span>
                </div>
                <!-- 提问所需JS -->
                <script type="text/javascript">
                    window.UEDITOR_HOME_URL = "{eyou:global name='web_cmspath' /}/public/plugins/Ueditor/";
                </script> 
                {eyou:static file="/public/plugins/Ueditor/ueditor.config.js"/}
                {eyou:static file="/public/plugins/Ueditor/ueditor.all.min.js"/}
                {eyou:static file="/public/plugins/Ueditor/lang/zh-cn/zh-cn.js"/}
                <!-- 提问内容框 -->
                <textarea class="textarea-inner" id="content" name="content" placeholder="问题描述，问题说明越详细，回答也会越准确！" style="resize: none; min-height: 150px;"></textarea>
                <div class="ask-from-item">
                    <span class="answer-btn" data-url="{$eyou.field.SubmitAddAsk}" onclick="SubmitAskData(this);">发布
                </div>
                <script type="text/javascript">
                    UE.getEditor('content', {
                        serverUrl :"{:url('user/Uploadify/index',array('savepath'=>'askpic'))}",
                        zIndex: 999,
                        initialFrameWidth: "100%",
                        initialFrameHeight: 300,
                        focus: false,
                        maximumWords: 99999,
                        removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',
                        pasteplain:false,
                        autoHeightEnabled: false,
                        toolbars: [["forecolor", "removeformat", "|", "simpleupload", "unlink"]],
                        xssFilterRules: true,
                        inputXssFilter: true,
                        outputXssFilter: true
                    });
                    // 必须在提交前渲染编辑器
                    function content() {
                        // 判断编辑模式状态:0表示【源代码】HTML视图；1是【设计】视图,即可见即所得；-1表示不可用
                        if (UE.getEditor("content").queryCommandState('source') != 0) {
                            UE.getEditor("content").execCommand('source');
                        }
                    }
                </script>
            </div>
        </form>
        <!-- 底部 -->
        {eyou:include file="ask/ask_footer.htm" /}
        <!-- 底部 END -->
    </body>
</html>